#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "drawingboard.h"
#include "mymath.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    DrawingBoard *mp_drawingBoard = nullptr;
    void initUI();

    QTimer m_timer;
    void initTimer();

    float m_angle = 0.0f;
    float m_cameraPos = 5.0f;
    void initData();
    void getChangeTrianglePoint(Point& p1, Point& p2, Point& p3);
};

#endif // MAINWINDOW_H
